<?php

header('Content-type: image/png');

$image = new Imagick($_GET['id'].".eps");
$image->setImageFormat('png');
// If 0 is provided as a width or height parameter,
// aspect ratio is maintained
//$image->thumbnailImage(100, 0);

echo $image;
unlink($_GET['id'].".eps");
?> 
